﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NewDDSys.Entity;
using NewDDSys.Factory;
using NewDDSys.IBLL;
using System.Data;

namespace NewDDSys.BLL
{
    public class BkcdtBLL:IBkcdtBLL
    {
        public int Add(BkcdtInfo dt)
        {
            return DALFactory.CreateBkcdtDAL().Add(dt);
        }
        public int Update(string dtnum, decimal kn, decimal kndc, decimal knfdc, decimal dk, decimal dkdc, decimal dkfdc)
        {
            return DALFactory.CreateBkcdtDAL().Update(dtnum, kn, kndc, knfdc, dk, dkdc, dkfdc);
        }
        public int UpdateKN(string dtnum, decimal kn)
        {
            return DALFactory.CreateBkcdtDAL().UpdateKN(dtnum, kn);
        }
        public int UpdateKNDC(string dtnum, decimal kndc)
        {
            return DALFactory.CreateBkcdtDAL().UpdateKNDC(dtnum, kndc);
        }
        public int UpdateKNFDC(string dtnum, decimal knfdc)
        {
            return DALFactory.CreateBkcdtDAL().UpdateKNFDC(dtnum, knfdc);
        }
        public int UpdateDK(string dtnum, decimal dk)
        {
            return DALFactory.CreateBkcdtDAL().UpdateDK(dtnum, dk);
        }
        public int UpdateDKDC(string dtnum, decimal dkdc)
        {
            return DALFactory.CreateBkcdtDAL().UpdateDKDC(dtnum, dkdc);
        }
        public int UpdateDKFDC(string dtnum, decimal dkfdc)
        {
            return DALFactory.CreateBkcdtDAL().UpdateDKFDC(dtnum, dkfdc);
        }
        public int Del(string dtnum)
        {
            return DALFactory.CreateBkcdtDAL().Del(dtnum);
        }
        public DataSet Select(string dtnum)
        {
            return DALFactory.CreateBkcdtDAL().Select(dtnum);
        }
        public DataSet SelectAll(string ku)
        {
            return DALFactory.CreateBkcdtDAL().SelectAll(ku);
        }
        public DataSet SelectPG(string ku)
        {
            return DALFactory.CreateBkcdtDAL().SelectPG(ku);
        }
        public string KuKC(string cday, string ku)
        {
            return DALFactory.CreateBkcdtDAL().KuKC(cday, ku);
        }
        public string JDBC(string cday)
        {
            return DALFactory.CreateBkcdtDAL().JDBC(cday);
        }
        public string BCkc(string cday)
        {
            return DALFactory.CreateBkcdtDAL().BCkc(cday);
        }
        public string ZKC(string cday)
        {
            return DALFactory.CreateBkcdtDAL().ZKC(cday);
        }
        public string DBJD(string cday)
        {
            return DALFactory.CreateBkcdtDAL().DBJD(cday);
        }
    }
}
